package com.project.bean;

import java.time.LocalDate;

/**学生实体类*/
public class StudentBean {
    /**学生id*/
    private int stuId;
    /**学生姓名*/
    private String stuName;
    /**学生性别*/
    private String sex;
    /**学生电话*/
    private String phone;
    /**头像*/
    private String image;
    /**入住时间*/
    private LocalDate inDate;
    /**该学生所在班级*/
    private ClassBean classBean;
    /**该学生所在房间*/
    private RoomBean roomBean;

    public StudentBean() {
    }

    public StudentBean(String stuName, String sex, String phone, String image,
                       LocalDate inDate, int classId, int roomId) {
        this.stuName = stuName;
        this.sex = sex;
        this.phone = phone;
        this.image = image;
        this.inDate = inDate;
        this.classBean = new ClassBean();
        this.classBean.setClassId(classId);
        this.roomBean = new RoomBean();
        this.roomBean.setRoomId(roomId);
    }

    public StudentBean(String stuName, String phone,ClassBean classBean) {

        this.stuName = stuName;
        this.phone = phone;
        this.classBean = classBean;
    }

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public LocalDate getInDate() {
        return inDate;
    }

    public void setInDate(LocalDate inDate) {
        this.inDate = inDate;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "stuName='" + stuName + '\'' +
                ", inDate=" + inDate +
                '}';
    }
}
